import request from '@/utils/request'

// 查询医务室信息列表
export function listClinic(query) {
  return request({
    url: '/medical/clinic/list',
    method: 'get',
    params: query
  })
}

// 查询医务室信息详细
export function getClinic(clinicId) {
  return request({
    url: '/medical/clinic/' + clinicId,
    method: 'get'
  })
}

// 新增医务室信息
export function addClinic(data) {
  return request({
    url: '/medical/clinic',
    method: 'post',
    data: data
  })
}

// 修改医务室信息
export function updateClinic(data) {
  return request({
    url: '/medical/clinic',
    method: 'put',
    data: data
  })
}

// 删除医务室信息
export function delClinic(clinicId) {
  return request({
    url: '/medical/clinic/' + clinicId,
    method: 'delete'
  })
}
